<template>
  <div>
    <!-- nav部分 -->
    <div class="nav index">
      <div class="layui-container">
        <div class="nav-list">
          <button>
            <span></span>
            <span></span>
            <span></span>
          </button>
          <ul class="layui-nav" lay-filter>
            <li class="layui-nav-item layui-this">
              <a href="Home">首页</a>
            </li>
            <li class="layui-nav-item">
              <a href="Lmzx">联盟中心</a>
            </li>
            <li class="layui-nav-item">
              <a href="Lmjk">联盟近况</a>
            </li>
            <li class="layui-nav-item">
              <a href>每日一问</a>
            </li>
            <li class="layui-nav-item">
              <a href>联盟风云</a>
            </li>
            <li class="layui-nav-item">
              <a href>今日话题</a>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <!-- banner部分 -->
    <div class="layui-carousel" id="banner">
      <div carousel-item>
        <div>
          <img src="static\img\img\banner1.jpg" />
          <div class="panel">
            <p class="title">Welcome</p>
            <p>学社联盟</p>
          </div>
        </div>
        <div>
          <img src="static\img\img\banner2.jpg" />
        </div>
      </div>
    </div>
    <!-- footer部分 -->
    <div class="footer">
      <div class="layui-container">
        <p class="footer-web">
          <a href="http://www.ccyl.org.cn/">共青团中央</a>
          <a href="http://www.ccyl.org.cn/organs/institution/xxb/">团中央学校部</a>
          <a href="http://www.gdcyl.org/Index.html">安徽共青团</a>
          <a href="http://www.gdcyl.org/xxb/">安徽学联</a>
          <a href="http://www.qypt.com.cn/">安徽信息工程学院</a>
        </p>
        <div class="layui-row footer-contact">
          <div class="layui-col-sm2 layui-col-lg1">
            <img src="static\img\img\erweima.png" />
          </div>
          <div class="layui-col-sm10 layui-col-lg11">
            <div class="layui-row">
              <div class="layui-col-sm6 layui-col-md8 layui-col-lg9">
                <p class="contact-top">本站版权归晓涛及胖虎、小叶所有</p>
                <p class="contact-bottom">诚招合作伙伴，有意者请及时联系。QQ：1459289161</p>
              </div>
              <div class="layui-col-sm6 layui-col-md4 layui-col-lg3">
                <p class="contact-top">
                  <span class="right">安徽省芜湖市安徽信息工程学院</span>
                </p>
                <p class="contact-bottom">
                  <span class="right">StudentCoucli@xiaotao;2020-4-20</span>
                </p>
              </div>
            </div>
            <a href>后台管理</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {};
  },
  mounted() {
    layui.use(["carousel", "form"], function() {
      var carousel = layui.carousel,
        form = layui.form;
      //图片轮播
      carousel.render({
        elem: "#banner",
        width: "100%",
        height: "898px",
        arrow: "always"
      });
    });
    //   注意进度条一栏element模块，否则无法进行正常渲染和功能操作
    layui.use("element", function() {
      var element = layui.element;
    });
  }
};
</script>

<style>
/** 首页 */
body {
	background: #FFF;
}
/*导航部分*/

.nav {
  width: 100%;
  height: 80px;
  box-shadow: 0 3px 3px 0 #ccc;
  background: #fff;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  overflow: hidden;
  transition: 0.3s;
}

/*轮播*/

#banner img {
  min-width: 100%;
  height: 898px;
}

#banner .panel {
  width: 400px;
  position: absolute;
  top: 25%;
  left: 50%;
  margin-left: -200px;
  text-align: center;
  background: #CDCABA;
}

#banner .panel p {
  color: #8c8c8c;
  font-size: 44px;
  line-height: 80px;
  letter-spacing: 15px;
}

#banner .panel p.title {
  color: #4a4a4a;
  font-size: 54px;
  letter-spacing: 10px;
}
</style>